﻿@model IEnumerable<IEnumerable<Tuple<string, object>>>
@if (@Model == null || !@Model.Any())
{
	<span>Aucun résultat</span>
}
else
{
	<table>
		<tr>
		@foreach (var propName in Model.First().Select(m => m.Item1))
		{
			<th>@propName</th>
		}
		</tr>
		@foreach (var line in Model)
		{
			<tr>
				@foreach (var propValue in line.Select(l => l.Item2))
				{
					<td>@(propValue != null ? propValue.ToString() : "")</td>
				}
			</tr>
			}
	</table>
}